package com.practice.nacos.config.example.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author yangdejun
 * @date 2020/12/01
 **/
@ConfigurationProperties(prefix = "user")
public class UserConfig {
    private int age;
    private String name;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "UserConfig{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
